import request from "@/request/request"

// 请求首页的数据
export const GetHomeList =()=>request.get("/index/index");
// 请求搜索数据
export const GetHistoryHot =()=>request.get("/search/index");
export const GetSearchList =(params)=>request.get("/search/helper",{params});
export const GetSearchTiplist =(params)=>request.get("/goods/list",{params});
// 删除记录
export const Deletelist =()=>request.get("/search/clearhistory");
// 请求专题数据
export const GetTemplate =(params)=>request.get("/topic/list",{params});
// 分类数据
export const GetType =()=>request.get("/catalog/index");
export const GetCurrentpage =(params)=>request.get("/catalog/current",{params});
// 品牌首发数据
export const GetBrand =(params)=>request.get("/brand/detail",{params});
// 商品详情数据
export const GetDetails =(params)=>request.get("/goods/detail",{params});
export const GetRelate =(params)=>request.get("/goods/related",{params});
// 用户登录数据
export const GetLoginuser =(params)=>request.post("/auth/loginByWeb",params);
// 添加商品数量
export const GetCarcount =()=>request.get("/cart/goodscount");
// 添加购物车
export const GetAddCart=(params)=>request.post("/cart/add",params);
// 购物车购买数据
export const GetCartindex=()=>request.get("/cart/index");
// 选中状态
export const GetCartcheck=(params)=>request.post("/cart/checked",params);
// 删除
export const GetDelte=(params)=>request.post("/cart/delete",params);
// 步进器更新
export const GetCartupdate=(params)=>request.post("/cart/update",params);






